package com.taobao.snowsnow.hibernate.pojo;

/**
 * @author tux
 *
 */
public class Orders {

	private Integer id;
	private Item item;
	private Product product;
	private Trade trade;
	private Integer quantity;
	private String discount;
	private Float price;
	private String descs;

	public Orders() {
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Item getItem() {
		return this.item;
	}

	public void setItem(Item item) {
		this.item = item;
	}

	public Trade getTrade() {
		return this.trade;
	}

	public void setTrade(Trade trade) {
		this.trade = trade;
	}

	/**
	 * 获取购买数量
	 * @return
	 * 			购买数量
	 */
	public Integer getQuantity() {
		return this.quantity;
	}

	/**
	 * <p>设置购买数量
	 * @param quantity
	 * 			购买数量
	 */
	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}

	public String getDiscount() {
		return this.discount;
	}

	public void setDiscount(String discount) {
		this.discount = discount;
	}

	public Float getPrice() {
		return this.price;
	}

	public void setPrice(Float price) {
		this.price = price;
	}

	@Override
	public String toString() {
		return "Orders [id=" + id + ", quantity=" + quantity + ", discount=" + discount
				+ ", price=" + price + "]";
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public String getDescs() {
		return descs;
	}

	public void setDescs(String descs) {
		this.descs = descs;
	}
}